define(function(require, exports, module) {
	//模块依赖
	var Vue = require('vue'),
		VueRouter = require('vue-router'),
		//需要路由的组件
		nav = require('nav'),
		content = require('content'),
		footer = require('footer'),
		
		Rel = require('content-rel'),
		Link = require('content-link'),
		Law = require('content-law');
		NameView = require('name-view');
	
	//使用vue-router
	Vue.use(VueRouter);
	
	//路由表
	var routes = [
	    //默认路由
	    { path: '*', redirect: '/content/rel' },
		{ path: '/nav', component: nav },
		{ 
			path: '/content', 
			component: content,
			children: [{
				path: 'rel',
		      	component:Rel
			},{
				path: 'link',
		      	component:Link
			},{
				path: 'named',
				//name router 命名路由,同级同时展示
		      	components:{
		      		'default':Law,
		      		'nameview':NameView
		      	} 
			}]
		},
		{ path: '/footer', component: footer }
	];
	
	var router = new VueRouter({
		routes: routes
	});
	
    //  导出模块内容
    return router;
});